<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = [];
        for(let i = 0;i < 5;++i) arr[i] = parseInt(prompt());
        function length(arr){
            for(let i = 0;i < 5;++i){
                document.write('第'+(i+1)+"位同学的分数是:"+arr[i]+'<br>');
            }
        }
        length(arr);
    </script>
</body>
</html>